package com.foreknow.elmboot.mapper;

import com.foreknow.elmboot.po.Order;
import com.foreknow.elmboot.po.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderListMapper {

    /**
     * 查询用户订单集合
     * @param userId
     * @return
     */
    @Select("select * from orders where userId=#{userId}")
    public List<Orders> selectOrders(Integer userId);

    /**
     * 查询订单明细
     * @param orderId
     * @return
     */
    public List<Order> selectOrder(Integer orderId);
//    @Select("select * from orderdetailet where orderId=#{orderId}")
}
